package com.loong.data.service.impl;

import com.loong.common.dubbo.service.AbstractService;
import com.loong.common.rest.rpc.RPCResponse;
import com.loong.data.consumer.OrderReportConsumer;
import com.loong.data.service.IOrderJobService;
import org.apache.dubbo.config.annotation.DubboService;

import javax.annotation.Resource;

/**
 * @Description:
 * @Author: hzp
 * @Date: 2021-1-4 10:15
 */
@DubboService(timeout = 5000,interfaceClass = IOrderJobService.class)
public class OrderJobServiceImpl extends AbstractService implements IOrderJobService{
    @Resource
    private OrderReportConsumer orderReportConsumer;

    @Override
    public RPCResponse checkTimeAndExecutor() {
        return serviceExecutor.execute(()->orderReportConsumer.checkTimeAndExecutor());
    }
}
